package com.education.service;

/**
 * Created by Fan on 2016/10/8.
 */
public interface ResponseStatus {

    public final static int CODE_OK = -1;
    public final static int CODE_SERVER_EXCEPTION = 101;
    public final static int CODE_SERVER_TIME_OUT = 102;
    public final static int CODE_CLIENT_PARAM_ERROR = 201;
    public final static int CODE_CLIENT_FAILURE = 202;
    public final static int CODE_USER_ALREADY_REIGISTER = 301;
    public final static int CODE_USER_VERIFICATION_WRONG = 302;
    public final static int CODE_USER_OPERATE_TIME_OUT = 303;
    public final static int CODE_UNAUTHORIZED = 304;
    public final static int CODE_FRIEND_INPUT = 305;
    public final static int CODE_SCORE_ERROR = 306;
    public final static int CODE_ALREADY_ENROLL = 307;
    public final static int CODE_FIELD_TOO_LONG = 308;
    public final static int CODE_USERTYPE_ERROR = 309;
    public final static int CODE_ORDERTYPE_ERROR = 310;
    public final static int CODE_EXPENSE_ERROR = 311;
    public final static int CODE_SHOPCART_NOT_EXIST=312;
    public final static int CODE_EXPENSE_NUM__NOT_ENOUGH=313;

    public final static String TEXT_OK = "ok";
    public final static String TEXT_SERVER_ERROR = "server exception";
    public final static String TEXT_TIME_OUT = "time out";
    public final static String TEXT_PARAM_ERROR = "upload parameter error";
    public final static String TEXT_ACCOUNT_NOT_EXIST = "userID(or phone) ? is not exist";
    public final static String TEXT_ACCOUNT_IS_REGISTERED = "user is already registered";
    public final static String TEXT_VERIFICATION_WRONG = "verification code is wrong";
    public final static String TEXT_CLIENT_OPERATE_TIME_OUT = "the operate in client is time out";
    public final static String TEXT_UNAUTHORIZED = "user is unauthoried";
    public final static String TEXT_FRIEND_ALREADY_INPUT = "friendphone is already input";
    public final static String TEXT_SCORE_NOT_ENOUGH = "score is not enough";
    public final static String TEXT_PASSWORD_ERROR = "password is error";
    public final static String TEXT_IDCARD_ERROR = "idcard is error";
    public final static String TEXT_PHONE_ERROR = "phone is error";
    public final static String TEXT_DATE_ERROR = "enddate or startdate is error";
    public final static String TEXT_SEND_ERROR = "send SMS is failure";
    public final static String TEXT_ALREADY_ENROLL = "user has been enrolled";
    public final static String TEXT_FIELD_TOO_LONG = "upload the field is too long";
    public final static String TEXT_USERTYPE_ERROR = "usertype is error";
    public final static String TEXT_ADDRESS_NOT_EXIST = "address ? is not exist";
    public final static String TEXT_ORDERTYPE_ERROR="ordertype ? is not matched with database";
    public final static String TEXT_EXPENSE_ERROR="商品不存在";
    public final static String TEXT_ADDRESS_LENGTH_ERROR="地址过长";
    public final static String TEXT_SHOPCARTS_NOT_EXIST="购物车不存在";
    public final static String TEXT_EXPENSE_NUM__NOT_ENOUGH="商品不足";
}

